import { Input as AntdInput } from 'antd';
import React from 'react';
import OTP from './OTP';
import Password from './Password';
import Search from './Search';
import TextArea from './TextArea';

import type { InputProps as AntdInputProps } from 'antd';

export type { Props as OTPProps } from './OTP';
export type { Props as PasswordProps } from './Password';
export type { Props as SearchProps } from './Search';
export type { Props as TextAreaProps } from './TextArea';
export { OTP, Password, Search, TextArea };

export type InputProps = AntdInputProps;

function Input(props: InputProps) {
  return <AntdInput {...props} />;
}

Input.OTP = OTP;
Input.Search = Search;
Input.TextArea = TextArea;
Input.Password = Password;
export default Input;
